/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="PROCEDIMENTOSSEQUENCIA")
public class ProcedimentosSequenciaProteu implements Serializable{

    @Id
    @Column(name="PROC_ST_CODIGO_AMB")
    private String procStCodigoAmb;
    @Id
    @Column(name="PROC_ST_CODIGO_INVALIDO")
    private String procStCodigoInvalido;

    @Column(name="PRS_ST_OBSERVACOES")
    private String prsStObservacoes;

    public String getProcStCodigoAmb() {
        return procStCodigoAmb;
    }

    public void setProcStCodigoAmb(String procStCodigoAmb) {
        this.procStCodigoAmb = procStCodigoAmb;
    }

    public String getProcStCodigoInvalido() {
        return procStCodigoInvalido;
    }

    public void setProcStCodigoInvalido(String procStCodigoInvalido) {
        this.procStCodigoInvalido = procStCodigoInvalido;
    }

    public String getPrsStObservacoes() {
        return prsStObservacoes;
    }

    public void setPrsStObservacoes(String prsStObservacoes) {
        this.prsStObservacoes = prsStObservacoes;
    }
    

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ProcedimentosSequenciaProteu other = (ProcedimentosSequenciaProteu) obj;
        if ((this.procStCodigoAmb == null) ? (other.procStCodigoAmb != null) : !this.procStCodigoAmb.equals(other.procStCodigoAmb)) {
            return false;
        }
        if ((this.procStCodigoInvalido == null) ? (other.procStCodigoInvalido != null) : !this.procStCodigoInvalido.equals(other.procStCodigoInvalido)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + (this.procStCodigoAmb != null ? this.procStCodigoAmb.hashCode() : 0);
        hash = 89 * hash + (this.procStCodigoInvalido != null ? this.procStCodigoInvalido.hashCode() : 0);
        return hash;
    }



}
